package com.zqwh.xtool.greendao.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import org.greenrobot.greendao.annotation.Generated;

@Entity
public class User {
    @Id
    private Long userId;
    private String username;
    private String password;
    private String name;
    private String template_1;
    private String template_2;
    private String template_3;
    private String template_4;
    private Boolean isAdmin;
    private String cardNo;
    private Boolean valid = true;
    private Boolean updated = false;
    @Generated(hash = 266864699)
    public User(Long userId, String username, String password, String name,
            String template_1, String template_2, String template_3,
            String template_4, Boolean isAdmin, String cardNo, Boolean valid,
            Boolean updated) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.name = name;
        this.template_1 = template_1;
        this.template_2 = template_2;
        this.template_3 = template_3;
        this.template_4 = template_4;
        this.isAdmin = isAdmin;
        this.cardNo = cardNo;
        this.valid = valid;
        this.updated = updated;
    }
    @Generated(hash = 586692638)
    public User() {
    }
    public Long getUserId() {
        return this.userId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getUsername() {
        return this.username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getTemplate_1() {
        return this.template_1;
    }
    public void setTemplate_1(String template_1) {
        this.template_1 = template_1;
    }
    public String getTemplate_2() {
        return this.template_2;
    }
    public void setTemplate_2(String template_2) {
        this.template_2 = template_2;
    }
    public String getTemplate_3() {
        return this.template_3;
    }
    public void setTemplate_3(String template_3) {
        this.template_3 = template_3;
    }
    public String getTemplate_4() {
        return this.template_4;
    }
    public void setTemplate_4(String template_4) {
        this.template_4 = template_4;
    }
    public Boolean getIsAdmin() {
        return this.isAdmin;
    }
    public void setIsAdmin(Boolean isAdmin) {
        this.isAdmin = isAdmin;
    }
    public String getCardNo() {
        return this.cardNo;
    }
    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }
    public Boolean getValid() {
        return this.valid;
    }
    public void setValid(Boolean valid) {
        this.valid = valid;
    }
    public Boolean getUpdated() {
        return this.updated;
    }
    public void setUpdated(Boolean updated) {
        this.updated = updated;
    }

    @Override
    public String toString() {
        return "userId=" + userId +
                ", username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", isAdmin=" + isAdmin +
                ", cardNo='" + cardNo + '\'' +
                ", valid=" + valid +
                ", updated=" + updated;
    }
}
